package gui;

import java.awt.Color;
import java.util.ArrayList;
import javax.swing.*;

import weerapp.meet.Waarneming;

@SuppressWarnings("serial")
public class MaandPanel extends JPanel
{	
	public MaandPanel()
	{
	}	
	
	public MaandPanel(ArrayList<Waarneming> panels)
	{		
		addWaarnemingPanels(panels);
	}
	
	public void addWaarnemingPanels(ArrayList<Waarneming> panels){
		for(Waarneming panel : panels ){
			add(new WaarnemingPanel(panel));
		}
		for(int x = panels.size(); x < 31; x++){
			add(new WaarnemingPanel(Color.blue));
		}
	}
	
	public void addWaarnemingPanel(int id, double max, double min, double neederslag){
		WaarnemingPanel wp = new WaarnemingPanel(id, max, min, neederslag);
		wp.setSize(200,100);
		this.add(wp);
	}
	
	
}
